package com.multicampus.minishop.view.user;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.multicampus.minishop.framework.Action;
import com.multicampus.minishop.services.user.UserService;
import com.multicampus.minishop.services.user.impl.UserServiceImpl;
import com.multicampus.minishop.user.vo.UserVO;


public class GetUserAction extends Action{

	@Override
	public String execute(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		// TODO Auto-generated method stub
		String userId=request.getParameter("userId");
		
		UserService service=new UserServiceImpl();
		UserVO vo=service.getUser(userId);
		
		request.setAttribute("vo", vo);
		return "forward:/user/readUser.jsp";
	}

}
